 <!-- 共用头部1 -->
  <link rel="stylesheet" href="../Public/style/owner_demand.css" />
	 <div id="top">
		 <div class="head1 clear">
			 <div class="account sprite_icon" style="text-align:center; ">
                  <a href="index.php?g=Mobile&m=User&a=index" style=" color:#FFF; line-height:50px">
                 {if cookie('username')}
                  {php $user=M('User')->field('username')->where('id='.$jgsatuserid)->find()}
                  {php echo $user['username']} 
                 {else}登录
                 {/if}
                 </a>
			 </div>
			    {if $title}
			    <div class="title">{$title}</div> 
               {else}
                <div class="title">{$seo_title}</div> 
               {/if}<div class="search sprite_icon">
			     <span class="icon2 icon_com">
			 </div>
		 </div>
	 </div>
 <include file="Mobile:nav"/>        
 <div class="choose owner_demand">
		 <!--<ul class="choose_btn clear">
			 <li class="active"><a href="javascript:;">全部</a></li>
			 <li><a href="javascript:;">城市</a></li>
			 <li><a href="javascript:;">空间</a></li>
			 <li><a href="javascript:;">面积</a></li>
			 <li><a href="javascript:;">预算</a></li>
		 </ul>-->

		 <!-- <div class="choose_type">
		 			 <div class="clear">
		 				 <span>现代风格</span>
		 				 <span>新中式风格</span>
		 				 <span class="active">新古典风格</span>
		 				 <span>工业复古风格</span>
		 				 <span>中式古典风格</span>
		 				 <span>东南亚风格</span>
		 				 <span>欧式风格</span>
		 				 <span>日式风格</span>
		 				 <span>其他</span>
		 			 </div>
		 
		 			 <div class="center">
		 				 <a href="javascript:;" class="sure">
		 					 确定
		 				 </a>
		 			 </div>
		 </div> -->

		 <div class="sort">
			 <ul class="sort_btn clear">
				 <li  {if empty($_GET['order'])} class="active no_bg" {/if}><a href="index.php?g=Mobile&m=Guestbook&a=index&id=5">默认排序</a></li>
				 <li {if $_GET['order']=='budget_order'} class="active no_bg" {/if}><a href="{:unsetParam('order',$url_s)}&order=budget_order">预算</a></li>
				 <li {if $_GET['order']=='createtime'} class="active no_bg" {/if}><a href="{:unsetParam('order',$url_s)}&order=createtime">发布时间</a></li>
			 </ul>
		 </div>

		 <div class="demand_info" id="tabajax">
			<volist name="list" id="r"> 
			 <div class="section D_border">
				 <a href="index.php?g=Mobile&m=Guestbook&a=show&id={$r['id']}">
					 <h2>{$r.bprovince|jgarea=###} {$r.bcity|jgarea=###}{$r.itemArea}{$r.itemType}设计</h2>
					 <p>{$r['content']}</p>
					 <div><span>{$r.bprovince|jgarea=###}</span><em>|</em><span>{$r['itemType']}</span><em>|</em><span>{$r['itemArea']}</span><em>|</em><span>￥{$r['budget']}</span></div>

					 <i class="time">{$r['createtime']|date='Y-m-d',###}</i>
				 </a>
			 </div>
            </volist> 
		 </div>
	 </div>
    <div class="psges" name="index.php?g=Mobile&m=Guestbook&a=index&id=5&p=2">下拉加载更多</div>
     
     
     
     <style>
  #footer{ display:none}
  </style>  
<script>
     $(window).scroll(function()
 
   {
  
    if ($(window).scrollTop() == $(document).height() - $(window).height())
    {
 //alert($(window).scrollTop())
         var url=$('.psges').attr("name");
		 $('.psges').html('加载中...');
	   //alert(url)
		 $.ajax({
			type:"GET",
			url: url,
			//data: "name=John&location=Boston",
			dataType:'json', //数据类型
			success: function(msg){
				if(msg.list){
					var result_len=msg.list.length;
						for(var i=0;i<result_len;i++){
							var html='';
							    html+='<div class="section D_border">';
				                html+='<a href="index.php?g=Mobile&m=Guestbook&a=show&id='+msg.list[i].id+'">';
					            html+='<h2>'+msg.list[i].p+' '+msg.list[i].c+' '+msg.list[i].itemArea+' '+msg.list[i].itemType+'设计</h2>';
					            html+='<p>'+msg.list[i].content+'</p>';
					            html+='<div><span>'+msg.list[i].p+'</span><em>|</em><span'+msg.list[i].itemType+'</span><em>|</em><span>'+msg.list[i].itemArea+'</span><em>|</em><span>'+msg.list[i].budget+'</span></div>';

					            html+='<i class="time">'+msg.list[i].date+'</i>';
				                html+='</a>';
			                    html+='</div>';
								
						 
						  $("#tabajax").append(html);
						}
					 $('.psges').attr('name',msg.p);
					 $('.psges').html('下拉加载更多');
					 
				}else{ $('.psges').html('没有更多');  }
				    
					
			   
			  
		}
	   
				
		});
	   
 
    }
 
   });
   </script>  